package com.atguigu.eduservice.client.impl;

import com.atguigu.commonutils.R;
import com.atguigu.eduservice.client.BannerClient;
import com.atguigu.eduservice.entity.CrmBanner;
import com.atguigu.eduservice.query.BannerQuery;
import org.springframework.stereotype.Component;

@Component
public class BannerClientImpl implements BannerClient {

    private R result() {
        return R.error("暂时无法提供服务,请稍后重试");
    }

    @Override
    public R pageBanner(BannerQuery query) {
        return result();
    }

    @Override
    public R delete(String id) {
        return result();
    }

    @Override
    public R save(CrmBanner banner) {
        return result();
    }

    @Override
    public R update(CrmBanner banner) {
        return result();
    }

    @Override
    public R listBanner() {
        return result();
    }
}
